package com.zhuiyun.project.api.dict.service;

import com.zhuiyun.project.api.dict.model.DictTypeModel;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.util.pageUtil.PageRequest;

/**
 * @ClassName DictTypeService
 * @Description TODO
 * @Author Root
 * @Date 2023/6/20 10:33
 **/
public interface DictTypeService {
    /*
    * @Author Root
    * @Description 分页查询
    * @Date 2023/7/27 17:21
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param pageRequest
    * @param dictTypeModel
    */
    CommonResult selectDictByPage(PageRequest pageRequest, DictTypeModel dictTypeModel);
    /*
    * @Author Root
    * @Description 修改数据
    * @Date 2023/7/27 17:21
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param dictTypeModel
    */
    CommonResult updateDict(DictTypeModel dictTypeModel);
    /*
    * @Author Root
    * @Description 删除字典数据
    * @Date 2023/7/27 17:22
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param dictId
    */
    CommonResult deleteById(Integer dictId) throws CommonException;
    /*
    * @Author Root
    * @Description 添加数据
    * @Date 2023/7/27 17:22
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param dictTypeModel
    */
    CommonResult insertDict(DictTypeModel dictTypeModel) throws CommonException;
    /*
    * @Author Root
    * @Description 模糊查询
    * @Date 2023/7/27 17:22
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param dictName
    */
    CommonResult selectLike(String dictName);

;
}